import { request } from "@umijs/max";

// /monitor/operlog/list
export async function getOperLogs(
  params: {
    // query
    /** 当前的页码 */
    pageNum?: number;
    /** 页面的容量 */
    pageSize?: number;
    operModule?: string;
    operType?: string;
    operName?: string;
    status?: string;
    operIp?: string;
    operLocation?: string;
    operParam?: string;
    jsonResult?: string;
    operTime?: string[];
  },
  options?: { [key: string]: any }
) {
  return request<API.TableDataInfo<API.OperLog>>("/api/monitor/operlog/list", {
    method: "GET",
    params: {
      ...params,
    },
    ...(options || {}),
  });
}
